package zzs.generalframework.integration.core.http.client.general;

import java.util.Map;

import zzs.generalframework.integration.common.constant.HttpMethod;

/**
 * @title
 * @description
 * @project zzs-integration
 * @package zzs.generalframework.integration.core.http.client.general
 * @author zzs
 * @date 2018年1月30日
 * @version 1.0
 */
public interface IGeneralHttpClient
{
	/**
	 * http请求
	 * 
	 * @param schema
	 *            http/https/...<br>
	 * @param hostname
	 *            <br>
	 * @param port
	 *            <br>
	 * @param appPath
	 *            <br>
	 * @param parameter
	 *            <br>
	 * @param methodType
	 *            <br>
	 * @return
	 */
	public String request(String schema, String hostname, String port, String appPath, Map<String, Object> parameterMap, HttpMethod httpMethod);

	public String request(String urlPath, Map<String, Object> parameterMap, HttpMethod httpMethod);

	public String requestGet(String schema, String hostname, String port, String appPath, Map<String, Object> parameterMap);

	public String requestGet(String urlPath, Map<String, Object> parameterMap);

	public String requestGet(String urlPath);

	public String requestPost(String schema, String hostname, String port, String appPath, Map<String, Object> parameterMap);

	public String requestPost(String urlPath, Map<String, Object> parameterMap);

	public String requestPost(String urlPath);

}
